﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElectronicCommerce.Framework.Web.Validation
{
    public abstract class FormEntityValidatorBase : IFormEntityValidator
    {

        #region IFormEntityValidator Members

        public bool IsValid()
        {
            return !(PopulateErrorMessages().Count() > 0);
        }

        public abstract IEnumerable<string> PopulateErrorMessages();

        #endregion


    }
}
